package com.atguigu.userprofile.util;

import java.util.ResourceBundle;

/**
 * 配置解析类
 */
public class MyPropsUtil {
    // IO
    // ClassLoader

    // ResourceBundle    i18n

    private static ResourceBundle  resourceBundle  =  ResourceBundle.getBundle("config");

    public static String get(String key){
        return resourceBundle.getString(key);
    }

    public static void main(String[] args) {
        String url = get("mysql.url");
        System.out.println(url);
    }
}
